﻿
using System;
using System.Windows.Forms;

namespace n_Imm
{
public static class Imm
{
	//初始化 - 未调用
	public static void __________________Init()
	{
		
	}
	
	//设置为中文输入法 控件的ImeMode属性设为On
	public static void SetEn( bool b )
	{
		if( b ) {
			//切换为英文
			foreach (InputLanguage inputLanguage in InputLanguage.InstalledInputLanguages)
			{
				if (inputLanguage.Culture.Name.IndexOf("en") >= 0)
				{
					InputLanguage.CurrentInputLanguage = inputLanguage;
					break;
				}
			}
		}
		/*
		else {
			//切换为中文
			foreach (InputLanguage inputLanguage in InputLanguage.InstalledInputLanguages)
			{
				if (inputLanguage.LayoutName.IndexOf(Operator.m_InputLanguage) >= 0)
				{
					InputLanguage.CurrentInputLanguage = inputLanguage;
					break;
				}
			}
		}
		*/
	}
}
}



